<?php
namespace app\admin\controller;
use think\Controller;
class Article extends Base
{
    // 页面数据查询展示
    public function index()
    {
        $list = db('eb_article')->paginate(5);
        $data = $list->items();
        $this->assign('list',$list);
        $this->assign('data',$data);
        return $this->fetch();
    }

    // 添加页面
    public function add(){
        return $this->fetch();
    }

    // 添加
    public function toadd(){
        return $this->fetch();
    }
}